Share={
		addUrl:"/skyline/share/add.html",
		add:function(type,resourceId,shareId){
//			alert();
			$.ajax({
				url: this.addUrl,
				data:"shareType="+type+"&resourceId="+resourceId+"&shareId="+shareId,
				type : "POST",
				dataType:"json",
				contentType: "application/x-www-form-urlencoded; charset=utf-8", 
				success : function(msg){
//					alert();
					if(msg==0){
						//alert("");
						jAlert("您成功分享。", '分享');
					}else if(msg==1){
						//alert("您已经分享过啦");
						jAlert("您已经分享过啦。", '分享');
					}else if(msg==2){
						ajaxLogin();
					}
				},
				error:function(){
					jAlert("对不起，您分享失败了。", '分享');
				}
			});
		}
}